<template>
  <div class="my_header">
    <span>
      <slot name="left" :abc="str" :cde="58"></slot>
    </span>
    <section><slot name="center"></slot></section>
    <span><slot name="right"></slot></span>
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
export default {
  setup() {
    const str = ref('我是插槽的作用域1');
    return {
      str
    }
  },
};
</script>
<style lang="scss" scoped>
.my_header {
  height: 50px;
  display: flex;
  background: rgba(9, 156, 156, 0.349);
  color: #fff;
  align-items: center;
  span {
    width: 60px;
    text-align: center;
  }
  section {
    flex: 1;
    text-align: center;
  }
}
</style>